﻿using System.Collections.Generic;
using yiCommerce.Core.Domain.Products;
using yiCommerce.Core.Domain.Statuses;

namespace yiCommerce.Core.Domain.Pictures
{
    public class Picture:BaseEntity
    {
        public virtual byte[] PictureBinary { get; set; }

        /// <summary>
        /// Gets or sets the picture mime type
        /// </summary>
        public virtual string MimeType { get; set; }

        private ICollection<ProductPicture> _productPictures;
        public virtual ICollection<ProductPicture> ProductPictures
        {
            get { return _productPictures ?? (_productPictures = new List<ProductPicture>()); }
            protected set { _productPictures = value; }
        }

        public virtual ICollection<StatusPicture> StatusPictures { get; set; }
    }
}